package com.example.Activity.mapper;

import com.example.Activity.domain.ActivityRegistration;
import com.example.Activity.domain.Vo.ActivityRegistrationListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityRegistrationMapper {
    List<ActivityRegistrationListVo> selectActivityRegistration(ActivityRegistration registration);

    void insertActivityRegistration(ActivityRegistration registration);

    void updateActivityRegistrationById(ActivityRegistration registration);

    void deleteActivityRegistrationById(@Param("id") String id);

    ActivityRegistrationListVo selectActivityRegistrationById(@Param("id") Integer id);

    List<ActivityRegistrationListVo> getRegistrationsByUserId(Integer userId);

    List<ActivityRegistrationListVo> getRegistrationsByActivityId(Integer activityId);
}